package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商城商品对象 kk_product
 * 
 * @author ruoyi
 * @date 2022-05-24
 */
public class KkProduct extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Integer id;

    /** 分类id */
    @Excel(name = "分类id")
    private Long cId;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String title;

    /** 商品封面图 */
    @Excel(name = "商品封面图")
    private String image;

    /** 商品轮播图 */
    @Excel(name = "商品轮播图")
    private String detailImage;

    /** 商品详情 */
    @Excel(name = "商品详情")
    private String content;

    /** 销量 */
    @Excel(name = "销量")
    private Integer sale;

    /** 商品排序 */
    @Excel(name = "商品排序")
    private Integer sort;

    /** 状态 1.正常 0.下架  */
    @Excel(name = "状态 1.正常 0.下架 ")
    private Integer status;

    /** 规格信息 */
    @Excel(name = "规格信息")
    private String specData;

    /** 添加时间 */
    @Excel(name = "添加时间")
    private Integer addtime;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long creator;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Date createDate;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setcId(Long cId) 
    {
        this.cId = cId;
    }

    public Long getcId() 
    {
        return cId;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setImage(String image) 
    {
        this.image = image;
    }

    public String getImage() 
    {
        return image;
    }
    public void setDetailImage(String detailImage) 
    {
        this.detailImage = detailImage;
    }

    public String getDetailImage() 
    {
        return detailImage;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setSale(Integer sale) 
    {
        this.sale = sale;
    }

    public Integer getSale() 
    {
        return sale;
    }
    public void setSort(Integer sort) 
    {
        this.sort = sort;
    }

    public Integer getSort() 
    {
        return sort;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setSpecData(String specData) 
    {
        this.specData = specData;
    }

    public String getSpecData() 
    {
        return specData;
    }
    public void setAddtime(Integer addtime) 
    {
        this.addtime = addtime;
    }

    public Integer getAddtime() 
    {
        return addtime;
    }
    public void setCreator(Long creator) 
    {
        this.creator = creator;
    }

    public Long getCreator() 
    {
        return creator;
    }
    public void setCreateDate(Date createDate) 
    {
        this.createDate = createDate;
    }

    public Date getCreateDate() 
    {
        return createDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("cId", getcId())
            .append("title", getTitle())
            .append("image", getImage())
            .append("detailImage", getDetailImage())
            .append("content", getContent())
            .append("sale", getSale())
            .append("sort", getSort())
            .append("status", getStatus())
            .append("specData", getSpecData())
            .append("addtime", getAddtime())
            .append("updateTime", getUpdateTime())
            .append("creator", getCreator())
            .append("createDate", getCreateDate())
            .toString();
    }
}
